using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class GameStart : MonoBehaviour
{
    private Button btn;
    private GameObject audioManager; 
    private void Start()
    {
        btn = GetComponent<Button>();
        btn.onClick.AddListener(StartGame);
        audioManager = GameObject.Find("AudioManager");
    }
    public void StartGame()
    {
        SceneManager.LoadScene("RougeLikeGame");
        DontDestroyOnLoad(audioManager);
    }
}
